package com.dao;

import org.apache.ibatis.annotations.Arg;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;
import pojo.Student;

import java.util.*;

public interface StudentDao {
    Student selectStudentById(Long id);
    List<Student> selectStudentByBirth(Date date);

    @MapKey("id")
    Map<Long,Map<String, Object>> selectStudentByBirthRtMap2(Date date);
    List<Map> selectStudentByBirthRtMap(Date date);
    List<Student> selectStudentByParams(Integer age,Double height,Character sex);
    List<Student> selectStudentByParams2(
            @Param("age") Integer age,@Param("height") Double height,@Param("sex") Character sex);
    Map selectStudentRtMap(Long id);
    void insertStudent(Map map);
}
